package com.qmctl.rest.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.deliveryorderconfirm.OrderLineClazz;

import java.io.Serializable;
@Entity
@Table(name="tInventoryControll",schema="")
public class InventoryControll implements Serializable{
  @Id
  private String id;
  private String orderId;
  private String orderlineNO;
  private String warehouseCode;
  private String itemCode;
  private String itemId;
  private String inventoryType;
  private long quantity;
  private long lockQuantity;
  private String batchCode;
  private String childbatchCode;
  private String productDate;
  private String expireDate;
  private String produceCode;
  private String value1;
  private String value2;
  private String channelCode;
  private String ownerCode;
  private String accountFlag;
  public InventoryControll(){
	  
  }
  public InventoryControll(EntryOrderLines BeanClazz){
    id = "";
    orderId = BeanClazz.getEntryOrderId();
    orderlineNO = BeanClazz.getOrderLineNo();
    //warehouseCode ;
    itemCode = BeanClazz.getItemCode();
    itemId = BeanClazz.getItemId();
    inventoryType = BeanClazz.getInventoryType();
    quantity = BeanClazz.getActualQty();
    lockQuantity = 0;
    batchCode = BeanClazz.getBatchCode();
    childbatchCode = "";
    productDate = BeanClazz.getProductDate();
    expireDate = BeanClazz.getExpireDate();
    produceCode = BeanClazz.getProduceCode();
    value1 = BeanClazz.getKey1();
    value2 = BeanClazz.getKey2();
    ownerCode=BeanClazz.getOwnerCode();
    channelCode = "";
    accountFlag = "0";
  }
  
  public InventoryControll(OrderLineClazz BeanClazz){
	    id = "";
	    orderId ="";
	    orderlineNO = BeanClazz.getOrderLineNo();
	    //warehouseCode ;
	    itemCode = BeanClazz.getItemCode();
	    itemId = BeanClazz.getItemId();
	    inventoryType = BeanClazz.getInventoryType();
	    quantity = BeanClazz.getActualQty();
	    lockQuantity = 0;
	    batchCode = BeanClazz.getBatchCode();
	    childbatchCode = "";
	    productDate = BeanClazz.getProductDate();
	    expireDate = BeanClazz.getExpireDate();
	    produceCode = BeanClazz.getProduceCode();
	    value1 = "";
	    value2 = "";
	    ownerCode="";
	    channelCode = "";
	    accountFlag = "0";

	}
  
  public InventoryControll(SellDeliveryOrderLines entryOrderLine) {
	// TODO Auto-generated constructor stub
	    id = "";
	    orderId ="";
	    orderlineNO = entryOrderLine.getOrderLineNo();
	    //warehouseCode ;
	    itemCode = entryOrderLine.getItemCode();
	    itemId = entryOrderLine.getItemId();
	    inventoryType = entryOrderLine.getInventoryType();
	   // quantity = BeanClazz.getQuantity();
	    lockQuantity = 0;
	    batchCode = entryOrderLine.getBatchCode();
	    childbatchCode = "";
	    productDate = entryOrderLine.getProductDate();
	    expireDate = entryOrderLine.getExpireDate();
	    produceCode = "";
	    value1 = "";
	    value2 = "";
	    ownerCode="";
	    channelCode = "";
	    accountFlag = "0";
}
public String getId(){
    return id;
  }
  public void setId(String sId){
    id = sId;
  }
  public String getOrderId(){
    return orderId;
  }
  public void setOrderId(String sOrderId){
    orderId = sOrderId;
  }
  public String getOrderlineNO(){
    return orderlineNO;
  }
  public void setOrderlineNO(String sOrderlineNO){
    orderlineNO= sOrderlineNO;
  }
  public String getWarehouseCode(){
    return warehouseCode;
  }
  public void setWarehouseCode(String sWarehouseCode){
    warehouseCode = sWarehouseCode;
  }
  public String getItemCode(){
    return itemCode;
  }
  public void setItemCode(String sItemCode){
    itemCode = sItemCode;
  }
  public String getItemId(){
    return itemId;
  }
  public void setItemId(String sItemId){
    itemId = sItemId;
  }
  public String getInventoryType(){
    return inventoryType;
  }
  public void setInventoryType(String sInventoryType){
    inventoryType = sInventoryType;
  }
  public long getQuantity(){
    return quantity;
  }
  public void setQuantity(long iQuantity){
    quantity= iQuantity;
  }
  public long getLockQuantity(){
    return lockQuantity;
  }
  public void setLockQuantity(long iLockQuantity){
    lockQuantity= iLockQuantity;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getChildbatchCode(){
    return childbatchCode;
  }
  public void setChildbatchCode(String sChildbatchCode){
    childbatchCode = sChildbatchCode;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getProduceCode(){
    return produceCode;
  }
  public void setProduceCode(String sProduceCode){
    produceCode = sProduceCode;
  }
  public String getValue1(){
    return value1;
  }
  public void setValue1(String sValue1){
    value1 = sValue1;
  }
  public String getValue2(){
    return value2;
  }
  public void setValue2(String sValue2){
    value2 = sValue2;
  }
  public String getChannelCode(){
    return channelCode;
  }
  public void setChannelCode(String sChannelCode){
    channelCode = sChannelCode;
  }
public String getOwnerCode() {
	return ownerCode;
}
public void setOwnerCode(String ownerCode) {
	this.ownerCode = ownerCode;
}
public String getAccountFlag() {
	return accountFlag;
}
public void setAccountFlag(String accountFlag) {
	this.accountFlag = accountFlag;
}
}
